#ifndef IMAGEPROCESS_H
#define IMAGEPROCESS_H

#include <QObject>

class ImageProcess : public QObject
{
    Q_OBJECT
public:
    explicit ImageProcess(){}
    virtual ~ImageProcess() = default;

    //设置开窗
    virtual int setROI(unsigned short x, unsigned short y, unsigned short width, unsigned short height) = 0;
    virtual int getROI(unsigned short &x, unsigned short &y, unsigned short &width, unsigned short &height) const = 0;

    //生成缩略图
    virtual int generateUploadImage(const unsigned char *image_pointer) = 0;
    virtual int getUploadImagedata(QByteArray &upload_image) = 0;

signals:
    void sigGenerateUploadImageSuccess();

};

#endif // IMAGEPROCESS_H
